package com.jbm.core.common;

import com.jbm.core.iface.IAcross;
import com.jbm.core.pb.PBIAcross;

/**
 * Created by root on 16-10-16.
 */
public interface RandR
{
	public static int RANDR_TYPE_REQUEST = 0x00000001;
	public static int RANDR_TYPE_RESPONSE = 0x00000002;
	public static int RANDR_TYPE_TASK = 0x00000004;

	int islastresult ( PBIAcross.IAcross iacross );
	PBIAcross.IAcross BuildResponse ( IAcross sresp );
	PBIAcross.IAcross BuildTimeoutResponse ();
	PBIAcross.IAcross BuildRequest ( String query,
                                     String classname,
                                     String method,
                                     int fromid,
                                     int toid,
                                     String fromtag,
                                     String totag,
                                     int index,
                                     boolean excode,
                                     boolean intask,
                                     IAcross content );

	Object GetCore();
	byte[] toByteArray();
}
